#ifndef __WIRELESS_H__
#define __WIRELESS_H__

#define DEVICE_HOST 0x01
#define DEVICE_A	0x0A
#define DEVICE_B	0x0B
#define DEVICE_C	0x0C
#define PACKAGE_LEN		20
#define WIRELESS_IDLE		 0
#define WIRELESS_FINDDEVICE 0x01
#define WIRELESS_PACKET_ERROR 0x0f
#define WIRELESS_SETDATA 0x81
#define WIRELESS_GETDATA 0x82
#define WIRELESS_SETDATA2 0x83
#define WIRELESS_GETDATA2 0x84
#define WIRELESS_DEVICE_ERROR 0x8f
#define WIRELESS_EXCEPTION_ERROR 0xff
typedef struct tagWirelessPacket
{
	unsigned char addr;
	unsigned char index;
	unsigned char type;
	unsigned char data[16];
	unsigned char state;
} WirelessPacket, *PWirelessPacket;

#endif
